import bg from '@/static/img/share.png'
const bgImg = bg
export default {

	onShareAppMessage(res) { //发送给朋友
		const user = uni.getStorageSync('userinfo')
		let url = '/pages/center/index?id=' + user.user_id
		// console.log('user', user);
		// console.log('url', url);
		return {
			title: "生活咨询：有“3次回访”就够了！",
			imageUrl: bgImg, //封面图
			path: url //后面是路径上要传递的参数
		}
	},
	onShareTimeline(res) { //分享到朋友圈
		const user = uni.getStorageSync('userinfo')
		// console.log(user, 'user');
		return {
			title: "生活咨询：有“3次回访”就够了！",
			imageUrl: bgImg, //封面图
			path: '/pages/center/index?id=' + user.user_id, //后面是路径上要传递的参数
		}
	},
}